package com.situ.spring.proxy;

import org.junit.Test;

public class Client {
	public static void main(String[] args) {
		Manager manager = new Manager();
		Secretary secretary = new Secretary(manager);
		secretary.sign();
	}
	
	@Test
	public void test() {
		// 目标对象
		ISubject subject = new Manager();
		  // 给目标对象创建代理对象
		ISubject proxy = (ISubject) proxyFactory.getProxyInstance(subject);
		proxy.sign();
	}
}
